package com.training.java.core.immutable;

public class Car {
	private String color;
	private String model;
	private String vinnumber;
	private int Currentspeed;

	public Car(String color,String model,String vinnumber,int Currentspeed)
	{
		this.color=color;
		this.model=model;
		this.Currentspeed=Currentspeed;
		this.vinnumber=vinnumber;
	}
	public String getColor() {
		return color;
	}

	public String getModel() {
		return model;
	}

	public String getVinnumber() {
		return vinnumber;
	}

	public int getCurrentspeed() {
		return Currentspeed;
	}
	
	public void  acclerate(int speed)
	{
		Currentspeed=speed+Currentspeed;
		System.out.println("Afetr Pressing the Acclerate Speed Is =" + Currentspeed);
	}
	
	

}
